import request from '@/utils/request'

export function psychologicalList(query) {
  return request({
    url: '/api/psychological_list/read',
    method: 'get',
    params: query
  })
}

export function deletePsychological(query) {
  console.log(query)
  return request({
    url: '/api/psychological_list/delete',
    method: 'post',
    data: query
  })
}

export function addPsychological(query) {
  return request({
    url: '/api/psychological_list/add',
    method: 'post',
    data: query
  })
}

export function updatePsychological(query) {
  return request({
    url: '/api/psychological_list/update',
    method: 'post',
    data: query
  })
}

export function numInfoPsychological(query) {
  return request({
    url: '/api/psychological_list/num_info',
    method: 'post',
    data: query
  })
}

// export function importingPsychological(query) {
//   return request({
//     url: '/api/patient_list/importing',
//     method: 'post',
//     data: query
//   })
// }
